package com.itheima.day02.ZuoYe.ZuoYe_4;

public abstract class Animals {
    private int age;

    @Override
    public String toString() {
        return "Animals{" +
                "age=" + age +
                '}';
    }

    public Animals() {
    }

    public Animals(int age) {
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void drink() {
        System.out.println("吨吨吨");
    }
    public abstract void eat();
}
